/*
 * Copyright (c) 2006-2021, Ulandlink Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-02-20     xpw          sync
 */
#ifndef __HTTP_UTILS_H__
#define __HTTP_UTILS_H__

#include <rtthread.h>
#include <ulog.h>

#if HTTP_SERVER_ENABLE

#include <at_socket.h>
#include <http_parse.h>
#include <http_upload.h>

#define     WEB_CONFIG_NAME_LEN             32
#define     WEB_CONFIG_KEY_LEN              128

#define     HTTP_POST_CONTENT_BUFFER        128

char http_get_latest_upload_event(void);
const char* http_mime_get_type(const char* url);
void http_send_cgi_resp(int socket, char *buffer, int length);
rt_bool_t http_run_cgi_by_name(int socket, char *url, http_request_t *request);

#endif
#endif
